define(['services/services'], function (services) {
    'use strict';
    services.factory('messageServices', ['$modal', function($modal) {
        return {
            showMessage:function(mesInfo){
                var modalInstance = $modal.open({
                    templateUrl: 'partials/modal/message.html',
                    controller: 'messageCtrl',
                    size: 'sm',
                    resolve: {
                        title: function () {
                            return "提示信息";
                        },
                        info:function(){
                            return mesInfo;
                        }
                    }
                });
                //操作返回
                modalInstance.result.then(function () {
                    // 清空用户本地token存储的信息，如果
                }, function () {
                });
            }
        };
    }]);
});